import { defineStore } from "pinia";
import { ref } from "vue";
import { Tpost } from "@/models/post";
import { Tuser } from "@/models/user";
import { Tsourcefile } from "@/models/sourcefile";

export const usePostInfo = defineStore("postinfo", () => {
    const postinfo = ref<Tpost>();
    const postmaster = ref<Tuser>();
    const postlist = ref<Tsourcefile[]>([]);
    const check_true = ref<boolean>(false);

    return { postinfo, postmaster, postlist,check_true };
}, { persist: true })